from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy as np
import os

ext_modules = [
    Extension("covMatrix_c",
              sources=["covMatrix_c.pyx"],
              define_macros = [('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')],
              include_dirs=[np.get_include()],
              libraries=["m"]  # Unix-like specific
              )
]

setup(
    name='covMatrix_c',
    version='0.0.1',
    long_description="""
    Cython 调用标准C库实现covMatrix 
    """,
    install_requires=['numpy'],
    ext_modules=cythonize(ext_modules, compiler_directives={'language_level': 2}),
    packages=find_packages()
)

